#include<iostream>
using namespace std;
class Time{
	private:int hour,minute,sec;
	public:void Input(int hour,int minute,int sec){
		this->hour=hour;this->minute=minute;this->sec=sec;
	}
	void Display(){
		cout<<hour<<":"<<minute<<":"<<sec<<endl;
	}
};
int main()
{
	Time t1;
	int hour,minute,sec;
	cin>>hour;
	cin>>minute;
	cin>>sec;
	t1.Input(hour,minute,sec);
	t1.Display();
return 0;
}

